package com.tjf.myjetpackdemo.Decorator;

/**
 * @author: tjf
 * @date: 2023-06-07
 * @desc：
 */
public class PizzaB extends decoratorPizza{
    Pizza pizza;

    public PizzaB(Pizza pizza) {
        this.pizza = pizza;
    }


    @Override
    public String getName() {
        return pizza.getName()+"+牛肉";
    }

    @Override
    public double getPrice() {
        return pizza.getPrice()+20;
    }


}
